(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(26639)}])},81222:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return u},ACTION_RESTORE:function(){return l},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return f},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return i}});let o="refresh",u="navigate",l="restore",a="server-patch",f="prefetch",c="fast-refresh",i="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45218:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(83785),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2888:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=n(38754),o=r._(n(67294)),u=n(82862),l=n(52968),a=n(42902),f=n(97321),c=n(60299),i=n(82250),s=n(36451),d=n(69897),p=n(45218),h=n(63475),_=n(81222),y=new Set;function b(e,t,n,r,o,u){if(!u&&!(0,l.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let o=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,u=t+"%"+n+"%"+o;if(y.has(u))return;y.add(u)}let a=u?e.prefetch(t,o):e.prefetch(t,n,r);Promise.resolve(a).catch(e=>{})}function m(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let v=o.default.forwardRef(function(e,t){let n,r;let{href:a,as:y,children:v,prefetch:g=null,passHref:O,replace:E,shallow:x,scroll:P,locale:C,onClick:j,onMouseEnter:T,onTouchStart:k,legacyBehavior:M=!1,...R}=e;n=v,M&&("string"==typeof n||"number"==typeof n)&&(n=o.default.createElement("a",null,n));let N=o.default.useContext(i.RouterContext),A=o.default.useContext(s.AppRouterContext),I=null!=N?N:A,w=!N,S=!1!==g,L=null===g?_.PrefetchKind.AUTO:_.PrefetchKind.FULL,{href:U,as:F}=o.default.useMemo(()=>{if(!N){let e=m(a);return{href:e,as:y?m(y):e}}let[e,t]=(0,u.resolveHref)(N,a,!0);return{href:e,as:y?(0,u.resolveHref)(N,y):t||e}},[N,a,y]),K=o.default.useRef(U),H=o.default.useRef(F);M&&(r=o.default.Children.only(n));let D=M?r&&"object"==typeof r&&r.ref:t,[z,V,B]=(0,d.useIntersection)({rootMargin:"200px"}),X=o.default.useCallback(e=>{(H.current!==F||K.current!==U)&&(B(),H.current=F,K.current=U),z(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[F,D,U,B,z]);o.default.useEffect(()=>{I&&V&&S&&b(I,U,F,{locale:C},{kind:L},w)},[F,U,V,C,S,null==N?void 0:N.locale,I,w,L]);let q={ref:X,onClick(e){M||"function"!=typeof j||j(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),I&&!e.defaultPrevented&&function(e,t,n,r,u,a,f,c,i,s){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!i&&!(0,l.isLocalURL)(n)))return;e.preventDefault();let h=()=>{let e=null==f||f;"beforePopState"in t?t[u?"replace":"push"](n,r,{shallow:a,locale:c,scroll:e}):t[u?"replace":"push"](r||n,{forceOptimisticNavigation:!s,scroll:e})};i?o.default.startTransition(h):h()}(e,I,U,F,E,x,P,C,w,S)},onMouseEnter(e){M||"function"!=typeof T||T(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),I&&(S||!w)&&b(I,U,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:L},w)},onTouchStart(e){M||"function"!=typeof k||k(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),I&&(S||!w)&&b(I,U,F,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:L},w)}};if((0,f.isAbsoluteUrl)(F))q.href=F;else if(!M||O||"a"===r.type&&!("href"in r.props)){let e=void 0!==C?C:null==N?void 0:N.locale,t=(null==N?void 0:N.isLocaleDomain)&&(0,p.getDomainLocale)(F,e,null==N?void 0:N.locales,null==N?void 0:N.domainLocales);q.href=t||(0,h.addBasePath)((0,c.addLocale)(F,e,null==N?void 0:N.defaultLocale))}return M?o.default.cloneElement(r,q):o.default.createElement("a",{...R,...q},n)}),g=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return f}});let r=n(67294),o=n(94482),u="function"==typeof IntersectionObserver,l=new Map,a=[];function f(e){let{rootRef:t,rootMargin:n,disabled:f}=e,c=f||!u,[i,s]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);(0,r.useEffect)(()=>{if(u){if(c||i)return;let e=d.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:o,elements:u}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=l.get(r)))return t;let o=new Map,u=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:u,elements:o},a.push(n),l.set(n,t),t}(n);return u.set(e,t),o.observe(e),function(){if(u.delete(e),o.unobserve(e),0===u.size){o.disconnect(),l.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!i){let e=(0,o.requestIdleCallback)(()=>s(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,i,d.current]);let h=(0,r.useCallback)(()=>{s(!1)},[]);return[p,i,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26639:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(85893),o=n(38048),u=n.n(o),l=n(41664),a=n.n(l),f=n(11163),c=()=>{let e=(0,f.useRouter)();return(0,r.jsx)("nav",{className:"fixed z-10 bottom-5 left-0 right-0 mx-auto flex animate-pop-in rounded-2xl overflow-hidden w-max transform transition-all duration-500 backdrop-filter backdrop-blur-sm p-4",children:[{name:"Search",path:"/"},{name:"Documents",path:"/document_explorer"}].map(t=>{let n=e.pathname===t.path;return(0,r.jsx)(a(),{legacyBehavior:!0,href:t.path,children:(0,r.jsx)("a",{className:"mx-12 text-zinc-700 font-thin text-opacity-50 hover:scale-110 transform transition-all duration-500 hover:text-yellow-400 hover:text-opacity-100 ".concat(n?"text-white":""),children:t.name})},t.name)})})},i=n(67294);n(16459);var s=function(e){let{Component:t,pageProps:n}=e;return(0,i.useEffect)(()=>{document.body.style.backgroundImage="url('".concat("static/background.png","')"),document.body.style.backgroundPosition="center",document.body.style.backgroundSize="cover",document.body.style.backgroundRepeat="no-repeat"},[]),(0,r.jsxs)("div",{className:u().className,children:[(0,r.jsx)(c,{}),(0,r.jsx)(t,{...n})]})}},16459:function(){},38048:function(e){e.exports={style:{fontFamily:"'__PT_Mono_320369', '__PT_Mono_Fallback_320369'",fontWeight:400,fontStyle:"normal"},className:"__className_320369"}},41664:function(e,t,n){e.exports=n(2888)},11163:function(e,t,n){e.exports=n(31247)}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(31247)}),_N_E=e.O()}]);